﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Car : Garages
    {
        public string CarName { get; set; }
        public string CarColor { get; set; }
        public int vehiclewheel { get; set; }
        public string GarageAddress { get; private set; }
        public string GarageName { get; private set; }
        public int GaragePhone { get; private set; }
        public void Run()
        {
            if (vehiclewheel >= 4)
            {
                Console.WriteLine("车可以起跑");
            }
            else
            {
                Garages.Repair();
                Console.WriteLine("请输入修车厂的姓名：");
                GarageName = Console.ReadLine();
                Console.WriteLine("请输入修车厂的电话：");
                GaragePhone = int.Parse(Console.ReadLine());
                Console.WriteLine("请输入修车厂的地址：");
                GarageAddress = Console.ReadLine();

            }
            Console.WriteLine("完成");
        }
    }
}
